<?php


namespace App\Http\Controllers\android\api;


use App\Http\Controllers\android\service\FileService;
use App\Http\Controllers\android\validate\File;
use App\Http\Controllers\utils\ToolUtil;
use Illuminate\Http\Request;

class FileApi
{
    public function getAppletQrCode(Request $request){
        $param = $request->all();
        return FileService::getAppletQrCode($param);
    }

    public function getFiles(Request $request){
        $param = $request->all();
        $data = File::getFiles($param);
        if($data){
            return ToolUtil::returnJson(401,$data[0]);
        }
        return FileService::getFiles($param);
    }

}